package cn.edu.scau.cmi.liuxintong.abstractFactory;

public class Brand {
   public static String getBrand(String brand,String meat) {
	   Factory factory=null;
	   String getMeat=null;
	   if(brand.compareTo("Wens")==0) {
		   factory=new WensFactory();
		   getMeat=factory.getMeet(meat);  
	   }
	   else if(brand.compareTo("Tianbang")==0) {
		   factory=new TianbangFactory();
		   getMeat=factory.getMeet(meat);  
	   }
	   else if(brand.compareTo("Aonong")==0) {
		   factory=new AonongFactory();
		   getMeat=factory.getMeet(meat);  
	   }
	   else getMeat="没有这品牌";
	   return getMeat;
   }
}
